<template>
  <a-button @click="doTest">test</a-button>
  <div>{{text}}</div>
</template>

<script setup lang="ts">
import { userApi } from '@/api/api'
import { ref } from 'vue'

const text = ref("abc");

const doTest = async () => {
  text.value = await userApi.test()
}

</script>
